﻿$(function () {
    var st = $("[id*='gvPropertyBagDatails'] > tbody > tr:first").attr("style");
    $(".tipsTable").attr('style', st);

    $('#filter').keyup(function () {
        var val = $(this).val().toUpperCase();
        $('[id*="gvPropertyBagDatails"] > tbody > tr').each(function (index, element) {
            if ($(this).text().toUpperCase().indexOf(val) < 0 && $(this).has("td").length > 0)
                $(this).hide();
            else
                $(this).show();
        });
    });
    
    //http://dropdownchecklist.sourceforge.net
    $('[id*="lbPermissions"]').dropdownchecklist({ emptyText: "Please select permissions...", width: 250 });
});